package com.talkweb.securitycamera.data.bean;

import ohos.data.distributed.common.FieldValueType;

/**
 * @version 1.0.1
 * @description:分布式数据库 字段
 * @program: security-camera
 * @Author xiaozhijun
 * @Date 2021/1/29 8:48
 */
public class FileNodeEntity {

    /**
     * 属性名
     */
    private String fieldName;

    /**
     * 属性类型
     */
    private FieldValueType type;

    /**
     * 是否允许为空
     */
    private boolean isNullable = true;

    public FileNodeEntity(String fieldName, FieldValueType type, boolean isNullable) {
        this.fieldName = fieldName;
        this.type = type;
        this.isNullable = isNullable;
    }

    public FileNodeEntity(String fieldName, FieldValueType type) {
        this.fieldName = fieldName;
        this.type = type;
    }

    public String getFieldName() {
        return fieldName;
    }

    public FieldValueType getType() {
        return type;
    }

    public boolean isNullable() {
        return isNullable;
    }
}
